import request from '@/utils/request'

export default {
  //新增或更新小节
  addOrUpdateVideo(videoDao){
    return request({
      url: "/eduservice/video/addOrUpdateVideo",
      method: 'POST',
      data: videoDao
    })
  },
  //删除小节
  deleteVideo(videoId){
    return request({
      url: `/eduservice/video/deleteVideo/${videoId}`,
      method: 'DELETE',
    })
  },
  //删除视频
  deleteVod(id){
    return request({
      url: `/vod/delete/${id}`,
      method: 'DELETE',
    })
  }
}

